﻿using CXW.Core.Services;
using System;

namespace CXW.Core
{
    /// <summary></summary>
    public static class LoggingService
    {
        public static void Debug(object message)
        {
            ServiceManager.Instance.LoggingService.Debug(message);
        }

        public static void DebugFormatted(string format, params object[] args)
        {
            ServiceManager.Instance.LoggingService.DebugFormatted(format, args);
        }

        public static void Info(object message)
        {
            ServiceManager.Instance.LoggingService.Info(message);
        }

        public static void InfoFormatted(string format, params object[] args)
        {
            ServiceManager.Instance.LoggingService.InfoFormatted(format, args);
        }

        public static void Warn(object message)
        {
            ServiceManager.Instance.LoggingService.Warn(message);
        }

        public static void Warn(object message, Exception exception)
        {
            ServiceManager.Instance.LoggingService.Warn(message, exception);
        }

        public static void WarnFormatted(string format, params object[] args)
        {
            ServiceManager.Instance.LoggingService.WarnFormatted(format, args);
        }

        public static void Error(object message)
        {
            ServiceManager.Instance.LoggingService.Error(message);
        }

        public static void Error(object message, Exception exception)
        {
            ServiceManager.Instance.LoggingService.Error(message, exception);
        }

        public static void ErrorFormatted(string format, params object[] args)
        {
            ServiceManager.Instance.LoggingService.ErrorFormatted(format, args);
        }

        public static void Fatal(object message)
        {
            ServiceManager.Instance.LoggingService.Fatal(message);
        }

        public static void Fatal(object message, Exception exception)
        {
            ServiceManager.Instance.LoggingService.Fatal(message, exception);
        }

        public static void FatalFormatted(string format, params object[] args)
        {
            ServiceManager.Instance.LoggingService.FatalFormatted(format, args);
        }
    }
}
